package com.phrp.dao;

import com.phrp.entity.Notice;
import com.phrp.entity.vo.SearchNoticeDataVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.LinkedList;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ssc
 * @since 2024-05-01
 */
@Mapper
public interface NoticeDao extends BaseMapper<Notice> {

    LinkedList<Notice> selectBySearchData(SearchNoticeDataVO searchData);

    Integer getTotalNum(SearchNoticeDataVO searchData);

    Integer updateByIds(@Param("ids") LinkedList<String> ids,@Param("type") String type,@Param("releaseTime") LocalDateTime releaseTime);
}
